package com.technology.education.ui.common.modify_phone

import android.os.Bundle
import com.technology.education.databinding.FragmentModifyPhoneBinding
import com.technology.education.ext.back
import com.technology.education.ext.getAppViewModel
import me.hgj.jetpackmvvm.base.fragment.BaseVmDbFragment

/**
 *@author:create by BZY
 *Date: 2022/5/18 10
 */
class ModifyPhoneFragment : BaseVmDbFragment<ModifyPhoneViewModel, FragmentModifyPhoneBinding>() {
    override fun initView(savedInstanceState: Bundle?) {
        mDatabind.vm = mViewModel
    }

    override fun createObserver() {
        mViewModel.result.observe(this) {
            if (it) {
                getAppViewModel().getInfo(false)
                back()
            }
        }
    }

    override fun showLoading(message: String) {
    }

    override fun dismissLoading() {
    }
}